"""
Task 1
Write a Python program to get a string made of the first 2 and the last 2 chars from a given string. If the
string length is less than 2, return instead of the empty string.
"""

"""
Task 2 
The valid phone number program. Make a program that checks if a string is in the right format for a phone 
number. The program should check that the string contains only numerical characters and is only 10 characters long. 
Print a suitable message depending on the outcome of the string evaluation.
"""

"""
Task 3 
The math quiz program. 

Write a program that asks the answer for a mathematical expression, checks whether 
the user is right or wrong, and then responds with a message accordingly. 
"""

"""
Task 4
The name check.

Write a program that has a variable with your name stored (in lowercase) and then asks for your name as input. The 
program should check if your input is equal to the stored name even if the given name has another case, e.g., 
if your input is “Anton” and the stored name is “anton”, it should return True 
"""

"""
Вхідні дані для всіх завдань можна отримувати двома способами: функція input(), або аргументи програми sys.argv

Task 5*
Write a Python program to construct the following pattern, using a while loop

*
* *
* * *
* * * *
* * * * *
* * * *
* * *
* *
*

Плюс за можливість динамічно змінити максимальну кількість зірочок в одному рядку (в прикладі 5)

"""

"""
Task 6*


Write a python program, which sums all digits in a python string.

Examples, input - ‘1234’, output - 10
"""


"""
Task 7* Write a Python program that accepts a string and calculate the number of digits, letters and other 
characters in the input string 
"""
